package basic.security.password;

import java.util.*;
import java.io.*;
import java.security.*;

public class Test {
	public static void main(String[] args) throws Exception{
		// -i -d -sp -add "!@#$%^&*()-=_+" 4
		// -d -add "!@#$%^&*()-=_+" 5
		// -d 5
		System.out.println(new Date());
		args = new String[]{"-d", "-add", "_", "4"};
		AttackPass.main(args);
		System.out.println(new Date());
	}
	
	public static void main_old(String args[]) throws Exception {
		Random rand = new Random();
		byte[] salt = new byte[12];
		rand.nextBytes(salt);
		for (int i = 0; i < salt.length; i++) {
			System.out.print(salt[i] + " ");
		}
		System.out.println();

		String s1 = new String(salt, "UTF8");
		salt = s1.getBytes("UTF8");

		for (int i = 0; i < salt.length; i++) {
			System.out.print(salt[i] + " ");
		}
		System.out.println();

	}
}